package com.tdengine.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 数据库操作
 */
@Mapper
public interface TDDataBaseMapper {

    /**
     * 创建数据库
     */
    int createDB(@Param("dbName") String dbName);

    /**
     * 删除数据库
     */
    void deleteDB(@Param("dbName")String dbName);

    /**
     * 修改数据库
     */
    void updateDB(@Param("dbName")String dbName,@Param("keep")String keep);

    /**
     * 查看数据库配置信息
     */
    Map<String, Object> DBSetting(@Param("dbName")String dbName);
}
